import request from '@/utils/request'

// 获取岗位申请列表
export function getApplications(params) {
  const { page = 0, size = 10, status, search = '' } = params || {}
  return request({
    url: '/api/admin/jobs/applications',
    method: 'get',
    params: {
      page,
      size,
      status,
      search
    }
  })
}

// 审核岗位申请
export function reviewApplication(id, data) {
  return request({
    url: `/api/admin/jobs/applications/${id}/review`,
    method: 'post',
    data
  })
}

// 删除岗位申请
export function deleteApplication(id) {
  return request({
    url: `/api/admin/jobs/applications/${id}`,
    method: 'delete'
  })
} 